def flower(my_num):
    num_str = str(my_num)
    str_sum = 0
    for i in num_str:
        str_sum += int(i) ** 3
    return True if str_sum == my_num else False


if __name__ == '__main__':
    for i in range(100, 1000):
        if flower(i):
            print(i)
